home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / text / show / Vinci12.lha / Vinci / Install < prev    next >
Text File  |  1995-03-23  |  3KB  |  139 lines

  1. ; *******************************************************************
  2. ;
  3. ; $VER: Install-Vinci 1.2 (18.3.95)
  4. ; Install script for Vinci copyright © 1995 Martin Wulffeld
  5. ;
  6. ; *******************************************************************
  7.  
  8. (set old_level @user-level)
  9. (set @default-dest "")
  10.  
  11. (set default_lang 2)
  12.  
  13. (set #bad-kick
  14. (cat "You must at least have Kickstart 2.04 to install Vinci!"
  15. ))
  16.  
  17. (set #copying-reqtoools        "Copying reqtools.library 38.1266 to LIBS:...")
  18. (set #copying-unpack        "Copying unpack.library 39.54 LIBS:...")
  19. (set #copying-vinci            "Copying Vinci program...")
  20. (set #copying-docs            "Copying Vinci documentation...")
  21.  
  22. (set #where-vinci            "In which drawer should Vinci be installed ?")
  23. (set #would-wb                "Do you also want Vinci in your SYS:C ?")
  24.  
  25. (set #which-language
  26. (cat "\nWhich languages should be installed?"
  27. ))
  28. (set #which-language-help
  29. (cat "\nThe Amiga can be operated in many different"
  30.       " languages. If you want Vinci to use the"
  31.      " same language as the Amiga Workbench"
  32.       " then a catalog file must be copied to your"
  33.       " harddisk for each language supported.\n\n"
  34.       "To reduce the amount of space consumed by the"
  35.       " language files, you can select to have only the"
  36.       " files of specific languages copied.\n\n"
  37.       "Simply check the boxes of the languages you wish"
  38.       " to have available on your system.\n\n"
  39.       @askoptions-help
  40. ))
  41.  
  42. ;=============================================================================
  43. ; Make sure we are running under a 2.04 ROM
  44.  
  45. (if (< (/ (getversion) 65536) 37)
  46. (
  47.     (abort #bad-kick)
  48. ))
  49.  
  50. ;=============================================================================
  51.  
  52. (copylib
  53.     (prompt "\n" #copying-reqtools)
  54.     (help @copylib-help)
  55.     (source "Libs/reqtools.library")
  56.     (dest "LIBS:")
  57.     (confirm)
  58. )
  59.  
  60. (copylib
  61.     (prompt "\n" #copying-unpack)
  62.     (help @copylib-help)
  63.     (source "Libs/unpack.library")
  64.     (dest "LIBS:")
  65.     (confirm)
  66. )
  67.  
  68. (set programdir
  69.     (askdir
  70.     (prompt  "Please select the path where you want to install Vinci along with the acompanying documentation. A drawer will not be created there.")
  71.     (help @copylib-help)
  72.     (default "SYS:")
  73.     (newpath)
  74.     )
  75. )
  76.  
  77. (copyfiles
  78.     (prompt "\n" #copying-vinci)
  79.     (help "")
  80.     (source "Vinci")
  81.     (dest programdir)
  82.     (infos)
  83. )
  84.  
  85. (makedir (cat programdir "Documentation"))
  86.  
  87. (copyfiles
  88.     (prompt "\n" #copying-docs)
  89.     (help "")
  90.     (source "Documentation/Vinci.guide")
  91.     (dest programdir)
  92.     (infos)
  93. )
  94.  
  95. (copyfiles
  96.     (prompt "\n" #copying-docs)
  97.     (help "")
  98.     (source "Documentation/Vinci.regform")
  99.     (dest programdir)
  100.     (infos)
  101. )
  102.  
  103. (if (exists "SYS:Locale")
  104. (
  105.     (if (exists "LOCALE:")
  106.     (
  107.         (user 2)
  108.         (set lang (askoptions (prompt #which-language)
  109.                                 (help #which-language-help)
  110.                                 (choices
  111.                                      "Dansk"
  112.                                      "English")
  113.                                 (default default_lang)
  114.                      )
  115.         )
  116.         (user old_level)
  117.  
  118.         (set n 0)
  119.         (while (set language (select n
  120.                                 "dansk"
  121.                                 ""))
  122.         (
  123.             (if (IN lang n)
  124.             (
  125.                 (if (< 2 n)
  126.                 (
  127.                     (makedir (cat "LOCALE:Catalogs/" language))
  128.                     (copyfiles (source (cat "Catalogs/" language))
  129.                                 (dest (cat "LOCALE:Catalogs/" language))
  130.                                 (all)
  131.                     )
  132.                 ))
  133.             ))
  134.             (set n (+ n 1))
  135.         ))
  136.     ))
  137. ))
  138.